{layout name="layout" /}
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程
            <small>添加课程</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
            <li class="active">添加课程</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <div class="col-xs-6">
                <form action="/index/Course/addCourse" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="课程名称" name="name">

                    </div>
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="课程描述" name="describe">

                    </div>
                    <div class="row">

                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
            </div>
            <div class="col-xs-6">
                <h4><strong >课程列表</strong></h4>
                <!-- Chat box -->
                <div  class="form-control" style="height: 400px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                        <div class="box">
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr >
                                        <td>ID</td>
                                        <td>课程名称</td>
                                        <td>课程描述</td>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($data as $value): ?>
                                    <tr>
                                        <td>{$value.course_id}</td>
                                        <td>{$value.name}</td>
                                        <td>{$value.describe}</td>
                                    </tr>
                                    <?php endforeach; ?>
                                    </tbody>

                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->